package cqut.wys.service;

import cqut.wys.domain.User;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * UserService服务接口
 * @author wuyoushan@zbj.com
 * @date 2017/2/20.
 */
public interface UserService {
    @Transactional(isolation = Isolation.DEFAULT,propagation = Propagation.REQUIRED)
    User login(String name, String password);
}
